<?php
/**
 * PsiFramework
 *
 * Php Simple Framework
 *
 * PHP version 5.3
 *
 * @category  PsiFramework.Plugins.Form.Classes.DAO
 * @package   PsiFramework.Plugins.Form.Classes.DAO
 * @author    Remi San <remi.san@gmail.com>
 * @copyright 2011 Remi San
 * @license   http://creativecommons.org/licenses/by/3.0/  Creative Commons CC BY 3.0
 * @version   SVN: <svn_id>
 * @link      http://www.psiframework.com/phpdoc/classes/db_\PsiFramework\Plugins\Form\Classes\DAO\FormFieldLinkDAO.html
 */

namespace PsiFramework\Plugins\Form\Classes\DAO;

import("Classes.DAO.AbstractDAO");
import("Plugins.Form.Classes.Model.FormFieldLink");

use \PsiFramework\Classes\DAO\AbstractDAO;
use \PsiFramework\Classes\Util\Parameters\ObjectParameters;
use \PsiFramework\Plugins\Form\Classes\Model\FormFieldLink;

/**
 * The FormFieldLink Data Access Object
 *
 * This is the default class for the FormFieldLink Data Access Object
 *
 * @category PsiFramework.Plugins.Form.Classes.DAO
 * @package  PsiFramework.Plugins.Form.Classes.DAO
 * @author   Remi San <remi.san@gmail.com>
 * @license  http://creativecommons.org/licenses/by/3.0/  Creative Commons CC BY 3.0
 * @link     http://www.psiframework.com/phpdoc/classes/db_\PsiFramework\Plugins\Form\Classes\DAO\FormFieldLinkDAO.html
 */
class FormFieldLinkDAO extends AbstractDAO
{
    /**
     * @var FormFieldLinkDAO
     */
    protected static $_singleton = null;

    /**
     * The function to call instead of the constructor.
     *
     * @param ObjectParameters $objectParameters The object parameters
     *                                           for FormFieldLink
     *
     * @return FormFieldLinkDAO
     */
    public static function getInstance(ObjectParameters $objectParameters)
    {

        if (self::$_singleton==null) {
            self::$_singleton = new FormFieldLinkDAO($objectParameters);
        }

        return self::$_singleton;
    }
}
